class BannersController < ApplicationController

  before_filter :find_channel

  def index
    @banners = @channel.banners.all
    respond_to do |format|
      format.xml
    end
  end


  protected

    def find_channel
      @channel = Channel.find_by_name(params[:channel_name])
    end

end
